<!--用户协议-->
<template>
  <div class="all bg1">
    <template v-for="(item, index) in lists">
      
      <div class="cell bt1" v-bind:key="index" @click="cellClick(item)">
        <text class="font30 text2 all">{{item.title}}</text>
        <LImage class="img-arrow" :src="Config.img('jiantou_hui.png')"></LImage>      
      </div>
      <div class="line line1" v-bind:key="'line'+index"></div>
    </template>
  </div>
</template>

<style src="@/_css/style.css" ></style>
<style scoped>
.cell {
  flex-direction: row;
  align-items: center;
  height:118px;

  padding-left: 40px;
  padding-right: 40px;
}
.line{
  height: 1px;
  margin-left: 40px;
}
.img-arrow {
  width: 16px;
  height: 26px;
  margin-left: 20px;
}
</style>

<script>
import jnavigator from "@/_js/navigator";
import jconfig from "@/_js/config";

const weexFunction = weex.requireModule("WeexFunction");

import I18N from "@/_i18n/i18n";
var T = I18N.t;
weexFunction.setTitle(T('用户协议'));

export default {
  
  data() {
    return {
      T:T,
      Config:jconfig,

      lists:[{'title':T('隐私条款'), 'url':'mine/ProtocolSecurity'}, 
            {'title':T('免责声明'), 'url':'mine/ProtocoStatement'},
            {'title':T('服务协议'), 'url':'mine/ProtocolService'}],
    };
  },

  methods: {
    /********************************** 点击事件*/
    //列表点击
    cellClick(item){
      var nav = {'navColor':'#0c0c0c'};
      jnavigator.open('', item.url, undefined, nav);
    }
  }
};

</script>
